package sjms.create.factory.abstractF;

import sjms.create.factory.abstractF.factory.DFactory;
import sjms.create.factory.abstractF.factory.Factory;
import sjms.create.factory.abstractF.factory.YFactory;
import sjms.create.factory.abstractF.production.baoma.BaoMa;
import sjms.create.factory.abstractF.production.baoma.DBaoMa;

/**
 * @ClassName:
 * @Description:
 * @Author fcb
 * @Date 2021/9/6 21:17
 */
public class Run {

    public static void main(String[] args) {
        Factory DFactory = new DFactory();
        BaoMa dBaoMa = DFactory.createBaoMa();
        System.out.println(dBaoMa);

        Factory YFactory = new YFactory();
        BaoMa yBaoMa = YFactory.createBaoMa();
        System.out.println(yBaoMa);

    }
}
